package com.eg366.proxy.spring;

import org.aspectj.lang.JoinPoint;

public class AopTagAdvisor {

	public void doBefore(JoinPoint jp) {
		Object target = jp.getTarget();
		String method = jp.getSignature().getName();
		Object[] objs = jp.getArgs();
		System.out.println("do AopTagAdvisor.doBefore();target=" + target.getClass().getName() + ",mehtod=" + method);
	}

	public void doAfter(JoinPoint jp) {
		Object target = jp.getTarget();
		String method = jp.getSignature().getName();
		Object[] objs = jp.getArgs();
		System.out.println("do AopTagAdvisor.doAfter();target=" + target.getClass().getName() + ",mehtod=" + method);
	}
}
